home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1990 September: Essentials 4 / ADC Developer CD (1990-09) [Essentials 4]_iso / Developer Essentials 4.iso / d e v e l o p / develop 4 code / Perils of PS II / Perils of PS II (THINK) / Tips2.think.p next >
MacBinary  |  1990-09-12  |  7.5 KB  |  [TEXT/PJMM]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert ZX81 Sinclair BASIC (image/sinclairBASIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Applause Picture (image/applausePicture) ext Unsupported
1% dexvert bsdiff patch (other/bsdiffPatch) ext Unsupported
1% dexvert imgdiff patch (other/imgdiffPatch) ext Unsupported
1% dexvert MATLAB p-code (other/matlabPCode) ext Unsupported
1% dexvert WSUS Patch Storage File (other/wsusPatchStorageFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Sep 12 16:29:34 1990, modified Wed Sep 12 16:29:34 1990, creator Think Pascal, type ASCII, 7144 bytes "Tips2.think.p" , at 0x1c68 286 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[PJMM]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 54 69 70 73 32 2e | 74 68 69 6e 6b 2e 70 00 |..Tips2.|think.p.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 50 4a 4d | 4d 01 00 ff fe 00 1b 00 |.TEXTPJM|M.......|
|00000050| 00 00 00 00 00 1b e8 00 | 00 01 1e a3 14 4b 2e a3 |........|.....K..|
|00000060| 14 4b 2e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.K......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cb 8d 00 00 |........|........|
|00000080| 70 72 6f 67 72 61 6d 20 | 54 69 70 73 31 3b 0d 0d |program |Tips1;..|
|00000090| 7b 24 49 46 43 20 54 48 | 49 4e 4b 5f 50 41 53 43 |{$IFC TH|INK_PASC|
|000000a0| 41 4c 7d 0d 7b 49 66 20 | 79 6f 75 20 61 72 65 20 |AL}.{If |you are |
|000000b0| 75 73 69 6e 67 20 54 48 | 49 4e 4b 20 50 61 73 63 |using TH|INK Pasc|
|000000c0| 61 6c 20 75 73 65 20 74 | 68 69 73 20 73 65 74 20 |al use t|his set |
|000000d0| 6f 66 20 69 6e 63 6c 75 | 64 65 73 20 61 6e 64 7d |of inclu|des and}|
|000000e0| 0d 7b 61 64 64 20 74 68 | 65 20 6c 69 62 72 61 72 |.{add th|e librar|
|000000f0| 79 20 27 70 72 69 6e 74 | 43 61 6c 6c 73 2e 6c 69 |y 'print|Calls.li|
|00000100| 62 27 20 74 6f 20 79 6f | 75 72 20 70 72 6f 6a 65 |b' to yo|ur proje|
|00000110| 63 74 2e 7d 0d 09 75 73 | 65 73 0d 09 09 70 72 69 |ct.}..us|es...pri|
|00000120| 6e 74 69 6e 67 3b 0d 0d | 7b 24 45 6c 73 65 43 7d |nting;..|{$ElseC}|
|00000130| 0d 7b 49 66 20 79 6f 75 | 20 61 72 65 20 75 73 69 |.{If you| are usi|
|00000140| 6e 67 20 4d 50 57 20 50 | 61 73 63 61 6c 20 75 73 |ng MPW P|ascal us|
|00000150| 65 20 74 68 69 73 20 73 | 65 74 20 6f 66 20 69 6e |e this s|et of in|
|00000160| 63 6c 75 64 65 73 2e 7d | 0d 09 75 73 65 73 0d 09 |cludes.}|..uses..|
|00000170| 09 4d 65 6d 74 79 70 65 | 73 2c 20 51 75 69 63 6b |.Memtype|s, Quick|
|00000180| 44 72 61 77 2c 20 4f 53 | 49 6e 74 66 2c 20 54 6f |Draw, OS|Intf, To|
|00000190| 6f 6c 49 6e 74 66 2c 20 | 50 61 63 6b 49 6e 74 66 |olIntf, |PackIntf|
|000001a0| 2c 20 4d 61 63 50 72 69 | 6e 74 3b 0d 0d 7b 24 45 |, MacPri|nt;..{$E|
|000001b0| 6e 64 43 7d 0d 0d 0d 0d | 09 63 6f 6e 73 74 0d 09 |ndC}....|.const..|
|000001c0| 09 50 6f 73 74 53 63 72 | 69 70 74 42 65 67 69 6e |.PostScr|iptBegin|
|000001d0| 20 3d 20 31 39 30 3b 0d | 09 09 50 6f 73 74 53 63 | = 190;.|..PostSc|
|000001e0| 72 69 70 74 45 6e 64 20 | 3d 20 31 39 31 3b 0d 09 |riptEnd |= 191;..|
|000001f0| 09 50 6f 73 74 53 63 72 | 69 70 74 48 61 6e 64 6c |.PostScr|iptHandl|
|00000200| 65 20 3d 20 31 39 32 3b | 0d 09 09 50 6f 73 74 53 |e = 192;|...PostS|
|00000210| 63 72 69 70 74 42 65 67 | 69 6e 4e 6f 53 61 76 65 |criptBeg|inNoSave|
|00000220| 20 3d 20 31 39 36 3b 0d | 0d 09 70 72 6f 63 65 64 | = 196;.|..proced|
|00000230| 75 72 65 20 53 65 6e 64 | 50 6f 73 74 53 63 72 69 |ure Send|PostScri|
|00000240| 70 74 20 28 74 68 65 43 | 6f 6d 6d 65 6e 74 3a 20 |pt (theC|omment: |
|00000250| 53 74 72 32 35 35 29 3b | 0d 09 09 76 61 72 0d 09 |Str255);|...var..|
|00000260| 09 09 50 53 43 6f 6d 6d | 61 6e 64 3a 20 53 74 72 |..PSComm|and: Str|
|00000270| 32 35 35 3b 0d 09 09 09 | 43 6f 6d 6d 61 6e 64 48 |255;....|CommandH|
|00000280| 64 6c 3a 20 48 61 6e 64 | 6c 65 3b 0d 09 09 09 43 |dl: Hand|le;....C|
|00000290| 52 53 74 72 69 6e 67 3a | 20 53 74 72 32 35 35 3b |RString:| Str255;|
|000002a0| 0d 09 09 09 74 68 65 45 | 72 72 6f 72 3a 20 4f 53 |....theE|rror: OS|
|000002b0| 45 72 72 3b 0d 09 62 65 | 67 69 6e 0d 09 09 43 52 |Err;..be|gin...CR|
|000002c0| 53 74 72 69 6e 67 20 3a | 3d 20 27 20 27 3b 0d 09 |String :|= ' ';..|
|000002d0| 09 43 52 53 74 72 69 6e | 67 5b 31 5d 20 3a 3d 20 |.CRStrin|g[1] := |
|000002e0| 43 48 52 28 31 33 29 3b | 0d 09 09 50 53 43 6f 6d |CHR(13);|...PSCom|
|000002f0| 6d 61 6e 64 20 3a 3d 20 | 74 68 65 43 6f 6d 6d 65 |mand := |theComme|
|00000300| 6e 74 3b 0d 09 09 50 53 | 43 6f 6d 6d 61 6e 64 20 |nt;...PS|Command |
|00000310| 3a 3d 20 43 4f 4e 43 41 | 54 28 50 53 43 6f 6d 6d |:= CONCA|T(PSComm|
|00000320| 61 6e 64 2c 20 43 52 53 | 74 72 69 6e 67 29 3b 0d |and, CRS|tring);.|
|00000330| 09 09 74 68 65 45 72 72 | 6f 72 20 3a 3d 20 50 74 |..theErr|or := Pt|
|00000340| 72 54 6f 48 61 6e 64 28 | 50 4f 49 4e 54 45 52 28 |rToHand(|POINTER(|
|00000350| 4f 52 44 28 40 50 53 43 | 6f 6d 6d 61 6e 64 29 20 |ORD(@PSC|ommand) |
|00000360| 2b 20 31 29 2c 20 43 6f | 6d 6d 61 6e 64 48 64 6c |+ 1), Co|mmandHdl|
|00000370| 2c 20 4c 45 4e 47 54 48 | 28 50 53 43 6f 6d 6d 61 |, LENGTH|(PSComma|
|00000380| 6e 64 29 29 3b 0d 09 09 | 69 66 20 74 68 65 45 72 |nd));...|if theEr|
|00000390| 72 6f 72 20 3c 3e 20 6e | 6f 45 72 72 20 74 68 65 |ror <> n|oErr the|
|000003a0| 6e 0d 09 09 09 62 65 67 | 69 6e 0d 09 09 09 28 2a |n....beg|in....(*|
|000003b0| 20 48 61 6e 64 6c 65 20 | 74 68 65 20 65 72 72 6f | Handle |the erro|
|000003c0| 72 21 20 2a 29 0d 09 09 | 09 65 6e 64 3b 0d 09 09 |r! *)...|.end;...|
|000003d0| 50 69 63 43 6f 6d 6d 65 | 6e 74 28 50 6f 73 74 53 |PicComme|nt(PostS|
|000003e0| 63 72 69 70 74 48 61 6e | 64 6c 65 2c 20 4c 45 4e |criptHan|dle, LEN|
|000003f0| 47 54 48 28 50 53 43 6f | 6d 6d 61 6e 64 29 2c 20 |GTH(PSCo|mmand), |
|00000400| 43 6f 6d 6d 61 6e 64 48 | 64 6c 29 3b 0d 09 09 44 |CommandH|dl);...D|
|00000410| 69 73 70 6f 73 48 61 6e | 64 6c 65 28 43 6f 6d 6d |isposHan|dle(Comm|
|00000420| 61 6e 64 48 64 6c 29 3b | 0d 09 65 6e 64 3b 0d 0d |andHdl);|..end;..|
|00000430| 09 70 72 6f 63 65 64 75 | 72 65 20 53 65 74 46 6f |.procedu|re SetFo|
|00000440| 6e 74 20 28 66 6f 6e 74 | 4e 61 6d 65 3a 20 53 74 |nt (font|Name: St|
|00000450| 72 32 35 35 3b 20 66 6f | 6e 74 53 69 7a 65 3a 20 |r255; fo|ntSize: |
|00000460| 49 4e 54 45 47 45 52 3b | 20 66 6f 6e 74 53 74 79 |INTEGER;| fontSty|
|00000470| 6c 65 3a 20 53 74 79 6c | 65 29 3b 0d 09 09 76 61 |le: Styl|e);...va|
|00000480| 72 0d 09 09 09 74 68 65 | 46 6f 6e 74 49 44 3a 20 |r....the|FontID: |
|00000490| 49 4e 54 45 47 45 52 3b | 0d 09 09 09 74 68 65 50 |INTEGER;|....theP|
|000004a0| 65 6e 4c 6f 63 3a 20 50 | 6f 69 6e 74 3b 0d 09 62 |enLoc: P|oint;..b|
|000004b0| 65 67 69 6e 0d 09 09 47 | 65 74 46 4e 75 6d 28 66 |egin...G|etFNum(f|
|000004c0| 6f 6e 74 4e 61 6d 65 2c | 20 74 68 65 46 6f 6e 74 |ontName,| theFont|
|000004d0| 49 44 29 3b 20 20 20 20 | 20 20 20 28 2a 20 47 65 |ID); | (* Ge|
|000004e0| 74 20 74 68 65 20 66 6f | 6e 74 20 49 44 2e 20 20 |t the fo|nt ID. |
|000004f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000500| 20 20 20 20 20 20 20 2a | 29 0d 09 09 54 65 78 74 | *|)...Text|
|00000510| 46 6f 6e 74 28 74 68 65 | 46 6f 6e 74 49 44 29 3b |Font(the|FontID);|
|00000520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000530| 28 2a 20 53 65 74 20 69 | 74 2e 20 20 20 20 20 20 |(* Set i|t. |
|00000540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000550| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 29 0d 09 | | *)..|
|00000560| 09 54 65 78 74 53 69 7a | 65 28 66 6f 6e 74 53 69 |.TextSiz|e(fontSi|
|00000570| 7a 65 29 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |ze); | |
|00000580| 20 20 20 20 20 28 2a 20 | 53 65 74 20 74 68 65 20 | (* |Set the |
|00000590| 73 69 7a 65 2e 2e 2e 20 | 20 20 20 20 20 20 20 20 |size... | |
|000005a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005b0| 20 2a 29 0d 09 09 54 65 | 78 74 46 61 63 65 28 66 | *)...Te|xtFace(f|
|000005c0| 6f 6e 74 53 74 79 6c 65 | 29 3b 20 20 20 20 20 20 |ontStyle|); |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 28 2a 20 2e 2e 2e | | (* ...|
|000005e0| 61 6e 64 20 74 68 65 20 | 73 74 79 6c 65 2e 20 20 |and the |style. |
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000600| 20 20 20 20 20 20 2a 29 | 0d 09 09 47 65 74 50 65 | *)|...GetPe|
|00000610| 6e 28 74 68 65 50 65 6e | 4c 6f 63 29 3b 20 20 20 |n(thePen|Loc); |
|00000620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 28 | | (|
|00000630| 2a 20 53 61 76 65 20 74 | 68 65 20 63 75 72 72 65 |* Save t|he curre|
|00000640| 6e 74 20 70 65 6e 20 70 | 6f 73 69 74 69 6f 6e 2e |nt pen p|osition.|
|00000650| 20 20 20 20 20 20 20 20 | 20 20 20 2a 29 0d 09 09 | | *)...|
|00000660| 44 72 61 77 43 68 61 72 | 28 27 20 27 29 3b 20 20 |DrawChar|(' '); |
|00000670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000680| 20 20 20 20 28 2a 20 44 | 72 61 77 20 61 20 73 70 | (* D|raw a sp|
|00000690| 61 63 65 20 73 6f 20 74 | 68 65 20 66 6f 6e 74 20 |ace so t|he font |
|000006a0| 67 65 74 73 20 64 6f 77 | 6e 6c 6f 61 64 65 64 2e |gets dow|nloaded.|
|000006b0| 2a 29 0d 09 09 4d 6f 76 | 65 54 6f 28 74 68 65 50 |*)...Mov|eTo(theP|
|000006c0| 65 6e 4c 6f 63 2e 68 2c | 20 74 68 65 50 65 6e 4c |enLoc.h,| thePenL|
|000006d0| 6f 63 2e 76 29 3b 20 20 | 20 28 2a 20 52 65 73 74 |oc.v); | (* Rest|
|000006e0| 6f 72 65 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c |ore the |original|
|000006f0| 20 70 65 6e 20 70 6f 73 | 69 74 69 6f 6e 2e 20 20 | pen pos|ition. |
|00000700| 20 20 20 20 20 2a 29 0d | 09 65 6e 64 3b 0d 0d 09 | *).|.end;...|
|00000710| 70 72 6f 63 65 64 75 72 | 65 20 44 72 61 77 53 74 |procedur|e DrawSt|
|00000720| 75 66 66 20 28 74 68 65 | 57 6f 72 6c 64 3a 20 52 |uff (the|World: R|
|00000730| 65 63 74 29 3b 0d 09 7b | 20 44 72 61 77 20 77 68 |ect);..{| Draw wh|
|00000740| 61 74 65 76 65 72 20 79 | 6f 75 20 77 61 6e 74 20 |atever y|ou want |
|00000750| 68 65 72 65 2e 20 20 4d | 61 6b 65 20 73 75 72 65 |here. M|ake sure|
|00000760| 20 69 74 20 66 69 74 73 | 20 69 6e 20 74 68 65 20 | it fits| in the |
|00000770| 77 6f 72 6c 64 20 72 65 | 63 74 61 6e 67 6c 65 2e |world re|ctangle.|
|00000780| 20 7d 0d 09 62 65 67 69 | 6e 0d 09 28 2a 20 46 69 | }..begi|n..(* Fi|
|00000790| 72 73 74 2c 20 6c 65 74 | 27 73 20 64 65 66 69 6e |rst, let|'s defin|
|000007a0| 65 20 61 20 50 6f 73 74 | 53 63 72 69 70 74 20 64 |e a Post|Script d|
|000007b0| 69 63 74 69 6f 6e 61 72 | 79 2e 20 20 53 69 6e 63 |ictionar|y. Sinc|
|000007c0| 65 20 77 65 20 61 72 65 | 6e 27 74 20 61 63 74 75 |e we are|n't actu|
|000007d0| 61 6c 6c 79 09 2a 29 0d | 09 28 2a 20 64 72 61 77 |ally.*).|.(* draw|
|000007e0| 69 6e 67 20 61 6e 79 74 | 68 69 6e 67 2c 20 77 65 |ing anyt|hing, we|
|000007f0| 20 64 6f 6e 27 74 20 6e | 65 65 64 20 74 6f 20 74 | don't n|eed to t|
|00000800| 75 72 6e 20 6f 66 66 20 | 51 75 69 63 6b 64 72 61 |urn off |Quickdra|
|00000810| 77 20 28 69 65 2e 20 77 | 65 20 64 6f 6e 27 74 20 |w (ie. w|e don't |
|00000820| 6e 65 65 64 09 2a 29 0d | 09 28 2a 20 74 68 65 20 |need.*).|.(* the |
|00000830| 50 6f 73 74 53 63 72 69 | 70 74 42 65 67 69 6e 2f |PostScri|ptBegin/|
|00000840| 45 6e 64 20 63 6f 6d 6d | 65 6e 74 73 29 2e 09 09 |End comm|ents)...|
|00000850| 09 09 09 09 09 09 09 09 | 2a 29 0d 09 28 2a 20 46 |........|*)..(* F|
|00000860| 69 72 73 74 20 63 72 65 | 61 74 65 20 61 20 64 69 |irst cre|ate a di|
|00000870| 63 74 69 6f 6e 61 72 79 | 20 74 68 61 74 20 63 61 |ctionary| that ca|
|00000880| 6e 20 68 6f 6c 64 20 31 | 30 20 6f 62 6a 65 63 74 |n hold 1|0 object|
|00000890| 73 2e 20 2a 29 0d 09 09 | 53 65 6e 64 50 6f 73 74 |s. *)...|SendPost|
|000008a0| 53 63 72 69 70 74 28 27 | 2f 6d 79 64 69 63 74 20 |Script('|/mydict |
|000008b0| 31 30 20 64 69 63 74 20 | 64 65 66 27 29 3b 0d 09 |10 dict |def');..|
|000008c0| 28 2a 20 4e 6f 77 20 6d | 61 6b 65 20 69 74 20 63 |(* Now m|ake it c|
|000008d0| 75 72 72 65 6e 74 2e 20 | 20 41 6c 6c 20 69 6d 70 |urrent. | All imp|
|000008e0| 6c 69 63 69 74 20 6f 70 | 65 72 61 74 69 6f 6e 73 |licit op|erations|
|000008f0| 20 66 72 6f 6d 20 6e 6f | 77 20 6f 6e 20 77 69 6c | from no|w on wil|
|00000900| 6c 20 67 6f 20 74 6f 09 | 2a 29 0d 09 28 2a 20 6d |l go to.|*)..(* m|
|00000910| 79 64 69 63 74 2e 09 09 | 09 09 09 09 09 09 09 09 |ydict...|........|
|00000920| 09 09 09 09 09 09 2a 29 | 0d 09 09 53 65 6e 64 50 |......*)|...SendP|
|00000930| 6f 73 74 53 63 72 69 70 | 74 28 27 6d 79 64 69 63 |ostScrip|t('mydic|
|00000940| 74 20 62 65 67 69 6e 27 | 29 3b 0d 09 28 2a 20 4e |t begin'|);..(* N|
|00000950| 6f 77 20 64 65 66 69 6e | 65 20 74 68 65 20 72 6f |ow defin|e the ro|
|00000960| 75 74 69 6e 65 20 74 6f | 20 73 61 76 65 20 74 68 |utine to| save th|
|00000970| 65 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 6f 66 20 |e defini|tion of |
|00000980| 62 75 20 6f 6e 20 74 68 | 65 20 73 74 61 63 6b 2c |bu on th|e stack,|
|00000990| 20 61 6e 64 2a 29 0d 09 | 28 2a 20 74 68 65 6e 20 | and*)..|(* then |
|000009a0| 64 65 66 69 6e 65 20 69 | 74 20 74 6f 20 64 6f 20 |define i|t to do |
|000009b0| 6e 6f 74 68 69 6e 67 2e | 09 09 09 09 09 09 09 09 |nothing.|........|
|000009c0| 09 09 2a 29 0d 09 09 53 | 65 6e 64 50 6f 73 74 53 |..*)...S|endPostS|
|000009d0| 63 72 69 70 74 28 27 2f | 6b 69 6c 6c 62 75 20 7b |cript('/|killbu {|
|000009e0| 2f 2f 6d 64 20 2f 62 75 | 20 67 65 74 20 2f 2f 6d |//md /bu| get //m|
|000009f0| 64 20 2f 62 75 20 7b 7d | 20 70 75 74 7d 20 64 65 |d /bu {}| put} de|
|00000a00| 66 27 29 3b 0d 09 28 2a | 20 4e 6f 77 20 64 65 66 |f');..(*| Now def|
|00000a10| 69 6e 65 20 61 20 72 6f | 75 74 69 6e 65 20 74 6f |ine a ro|utine to|
|00000a20| 20 70 6f 70 20 74 68 65 | 20 6f 6c 64 20 64 65 66 | pop the| old def|
|00000a30| 69 6e 69 74 69 6f 6e 20 | 6f 66 20 62 75 20 6f 66 |inition |of bu of|
|00000a40| 66 20 74 68 65 20 73 74 | 61 63 6b 2c 09 2a 29 0d |f the st|ack,.*).|
|00000a50| 09 28 2a 20 61 6e 64 20 | 62 61 63 6b 20 69 6e 74 |.(* and |back int|
|00000a60| 6f 20 74 68 65 20 62 75 | 20 73 79 6d 62 6f 6c 2e |o the bu| symbol.|
|00000a70| 09 09 09 09 09 09 09 09 | 09 09 09 2a 29 0d 09 09 |........|...*)...|
|00000a80| 53 65 6e 64 50 6f 73 74 | 53 63 72 69 70 74 28 27 |SendPost|Script('|
|00000a90| 2f 72 65 73 74 6f 72 65 | 62 75 20 7b 2f 2f 6d 64 |/restore|bu {//md|
|00000aa0| 20 65 78 63 68 20 2f 62 | 75 20 65 78 63 68 20 70 | exch /b|u exch p|
|00000ab0| 75 74 7d 20 64 65 66 27 | 29 3b 0d 09 28 2a 20 4e |ut} def'|);..(* N|
|00000ac0| 6f 77 20 64 6f 20 74 68 | 65 20 73 61 6d 65 20 66 |ow do th|e same f|
|00000ad0| 6f 72 20 62 6e 2e 09 09 | 09 09 09 09 09 09 09 09 |or bn...|........|
|00000ae0| 09 09 2a 29 0d 09 09 53 | 65 6e 64 50 6f 73 74 53 |..*)...S|endPostS|
|00000af0| 63 72 69 70 74 28 27 2f | 6b 69 6c 6c 62 6e 20 7b |cript('/|killbn {|
|00000b00| 2f 2f 6d 64 20 2f 62 6e | 20 67 65 74 20 2f 2f 6d |//md /bn| get //m|
|00000b10| 64 20 2f 62 6e 20 7b 7d | 20 70 75 74 7d 20 64 65 |d /bn {}| put} de|
|00000b20| 66 27 29 3b 0d 09 09 53 | 65 6e 64 50 6f 73 74 53 |f');...S|endPostS|
|00000b30| 63 72 69 70 74 28 27 2f | 72 65 73 74 6f 72 65 62 |cript('/|restoreb|
|00000b40| 6e 20 7b 2f 2f 6d 64 20 | 65 78 63 68 20 2f 62 6e |n {//md |exch /bn|
|00000b50| 20 65 78 63 68 20 70 75 | 74 7d 20 64 65 66 27 29 | exch pu|t} def')|
|00000b60| 3b 0d 09 28 2a 20 4e 6f | 77 20 64 65 66 69 6e 65 |;..(* No|w define|
|00000b70| 20 61 20 74 65 73 74 20 | 72 6f 75 74 69 6e 65 20 | a test |routine |
|00000b80| 74 68 61 74 20 77 65 20 | 63 61 6e 20 65 78 65 63 |that we |can exec|
|00000b90| 75 74 65 20 74 6f 20 73 | 65 65 20 69 66 20 6f 75 |ute to s|ee if ou|
|00000ba0| 72 20 64 69 63 74 20 77 | 61 73 09 2a 29 0d 09 28 |r dict w|as.*)..(|
|00000bb0| 2a 20 74 72 75 6c 79 20 | 70 72 65 73 65 72 76 65 |* truly |preserve|
|00000bc0| 64 2e 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |d.......|........|
|00000bd0| 2a 29 0d 09 09 53 65 6e | 64 50 6f 73 74 53 63 72 |*)...Sen|dPostScr|
|00000be0| 69 70 74 28 27 2f 74 69 | 74 6c 65 73 68 6f 77 20 |ipt('/ti|tleshow |
|00000bf0| 7b 64 75 70 20 67 73 61 | 76 65 27 29 3b 0d 09 09 |{dup gsa|ve');...|
|00000c00| 53 65 6e 64 50 6f 73 74 | 53 63 72 69 70 74 28 27 |SendPost|Script('|
|00000c10| 63 75 72 72 65 6e 74 73 | 63 72 65 65 6e 20 33 20 |currents|creen 3 |
|00000c20| 2d 31 20 72 6f 6c 6c 20 | 70 6f 70 20 31 32 30 20 |-1 roll |pop 120 |
|00000c30| 33 20 31 20 72 6f 6c 6c | 20 73 65 74 73 63 72 65 |3 1 roll| setscre|
|00000c40| 65 6e 27 29 3b 0d 09 09 | 53 65 6e 64 50 6f 73 74 |en');...|SendPost|
|00000c50| 53 63 72 69 70 74 28 27 | 2e 35 20 73 65 74 67 72 |Script('|.5 setgr|
|00000c60| 61 79 20 73 68 6f 77 20 | 67 72 65 73 74 6f 72 65 |ay show |grestore|
|00000c70| 20 74 72 75 65 20 63 68 | 61 72 70 61 74 68 20 67 | true ch|arpath g|
|00000c80| 73 61 76 65 27 29 3b 0d | 09 09 53 65 6e 64 50 6f |save');.|..SendPo|
|00000c90| 73 74 53 63 72 69 70 74 | 28 27 31 20 73 65 74 6c |stScript|('1 setl|
|00000ca0| 69 6e 65 77 69 64 74 68 | 20 30 20 73 65 74 67 72 |inewidth| 0 setgr|
|00000cb0| 61 79 20 73 74 72 6f 6b | 65 20 67 72 65 73 74 6f |ay strok|e gresto|
|00000cc0| 72 65 27 29 3b 0d 09 09 | 53 65 6e 64 50 6f 73 74 |re');...|SendPost|
|00000cd0| 53 63 72 69 70 74 28 27 | 2e 35 20 73 65 74 6c 69 |Script('|.5 setli|
|00000ce0| 6e 65 77 69 64 74 68 20 | 31 20 73 65 74 67 72 61 |newidth |1 setgra|
|00000cf0| 79 20 73 74 72 6f 6b 65 | 20 7d 64 65 66 27 29 3b |y stroke| }def');|
|00000d00| 0d 09 28 2a 20 54 68 69 | 73 20 65 6e 64 73 20 74 |..(* Thi|s ends t|
|00000d10| 68 65 20 27 6d 79 64 69 | 63 74 20 62 65 67 69 6e |he 'mydi|ct begin|
|00000d20| 27 20 61 62 6f 76 65 2c | 20 72 65 73 74 6f 72 69 |' above,| restori|
|00000d30| 6e 67 20 6d 64 20 61 73 | 20 74 68 65 20 63 75 72 |ng md as| the cur|
|00000d40| 72 65 6e 74 20 64 69 63 | 74 2e 2a 29 0d 09 09 53 |rent dic|t.*)...S|
|00000d50| 65 6e 64 50 6f 73 74 53 | 63 72 69 70 74 28 27 65 |endPostS|cript('e|
|00000d60| 6e 64 27 29 3b 0d 0d 09 | 28 2a 20 4f 6b 61 79 2c |nd');...|(* Okay,|
|00000d70| 20 6e 6f 77 20 77 65 20 | 68 61 76 65 20 6f 75 72 | now we |have our|
|00000d80| 20 64 69 63 74 69 6f 6e | 61 72 79 20 64 65 66 69 | diction|ary defi|
|00000d90| 6e 65 64 2c 20 77 65 20 | 6e 65 65 64 20 74 6f 20 |ned, we |need to |
|00000da0| 6b 69 6c 6c 20 6f 66 66 | 20 74 68 6f 73 65 09 2a |kill off| those.*|
|00000db0| 29 0d 09 28 2a 20 6e 61 | 73 74 79 20 62 6e 20 61 |)..(* na|sty bn a|
|00000dc0| 6e 64 20 62 75 20 6f 70 | 65 72 61 74 6f 72 73 20 |nd bu op|erators |
|00000dd0| 62 65 66 6f 72 65 20 74 | 68 65 79 20 6b 69 6c 6c |before t|hey kill|
|00000de0| 20 75 73 20 28 69 65 2e | 20 62 65 66 6f 72 65 20 | us (ie.| before |
|00000df0| 61 20 66 6f 6e 74 20 09 | 2a 29 0d 09 28 2a 20 64 |a font .|*)..(* d|
|00000e00| 6f 77 6e 6c 6f 61 64 29 | 2e 09 09 09 09 09 09 09 |ownload)|........|
|00000e10| 09 09 09 09 09 09 09 09 | 2a 29 0d 09 28 2a 20 46 |........|*)..(* F|
|00000e20| 69 72 73 74 20 70 6f 69 | 6e 74 20 74 6f 20 6f 75 |irst poi|nt to ou|
|00000e30| 72 20 64 69 63 74 69 6f | 6e 61 72 79 2e 09 09 09 |r dictio|nary....|
|00000e40| 09 09 09 09 09 09 09 2a | 29 0d 09 09 53 65 6e 64 |.......*|)...Send|
|00000e50| 50 6f 73 74 53 63 72 69 | 70 74 28 27 6d 79 64 69 |PostScri|pt('mydi|
|00000e60| 63 74 20 62 65 67 69 6e | 27 29 3b 0d 09 28 2a 20 |ct begin|');..(* |
|00000e70| 4e 6f 77 20 6b 69 6c 6c | 20 6f 66 66 20 62 75 2c |Now kill| off bu,|
|00000e80| 20 73 61 76 69 6e 67 20 | 69 74 73 20 6f 72 69 67 | saving |its orig|
|00000e90| 69 6e 61 6c 20 64 65 66 | 69 6e 69 74 69 6f 6e 20 |inal def|inition |
|00000ea0| 6f 6e 20 74 68 65 20 73 | 74 61 63 6b 2e 09 09 2a |on the s|tack...*|
|00000eb0| 29 0d 09 09 53 65 6e 64 | 50 6f 73 74 53 63 72 69 |)...Send|PostScri|
|00000ec0| 70 74 28 27 2f 2f 6d 64 | 20 2f 62 75 20 6b 6e 6f |pt('//md| /bu kno|
|00000ed0| 77 6e 20 7b 6b 69 6c 6c | 62 75 7d 20 69 66 27 29 |wn {kill|bu} if')|
|00000ee0| 3b 0d 09 28 2a 20 2e 2e | 2e 61 6e 64 20 74 68 65 |;..(* ..|.and the|
|00000ef0| 20 73 61 6d 65 20 66 6f | 72 20 62 6e 2e 09 09 09 | same fo|r bn....|
|00000f00| 09 09 09 09 09 09 09 09 | 09 2a 29 0d 09 09 53 65 |........|.*)...Se|
|00000f10| 6e 64 50 6f 73 74 53 63 | 72 69 70 74 28 27 2f 2f |ndPostSc|ript('//|
|00000f20| 6d 64 20 2f 62 6e 20 6b | 6e 6f 77 6e 20 7b 6b 69 |md /bn k|nown {ki|
|00000f30| 6c 6c 62 6e 7d 20 69 66 | 27 29 3b 0d 09 28 2a 2a |llbn} if|');..(**|
|00000f40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 20 49 4d 50 4f 52 54 |********|* IMPORT|
|00000f60| 41 4e 54 20 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ANT ****|********|
|00000f70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f80| 2a 2a 2a 2a 2a 2a 29 0d | 09 28 2a 20 53 69 6e 63 |******).|.(* Sinc|
|00000f90| 65 20 74 68 65 20 64 65 | 66 69 6e 69 74 69 6f 6e |e the de|finition|
|00000fa0| 20 6f 66 20 62 75 20 61 | 6e 64 20 62 6e 20 68 61 | of bu a|nd bn ha|
|00000fb0| 76 65 20 62 65 65 6e 20 | 73 61 76 65 64 20 6f 6e |ve been |saved on|
|00000fc0| 20 74 68 65 20 73 74 61 | 63 6b 2c 20 74 68 65 79 | the sta|ck, they|
|00000fd0| 09 2a 29 0d 09 28 2a 20 | 6d 75 73 74 20 62 65 20 |.*)..(* |must be |
|00000fe0| 72 65 73 74 6f 72 65 64 | 20 69 6e 20 74 68 65 20 |restored| in the |
|00000ff0| 6f 70 70 6f 73 69 74 65 | 20 6f 72 64 65 72 20 74 |opposite| order t|
|00001000| 68 61 74 20 74 68 65 79 | 20 77 65 72 65 20 6b 69 |hat they| were ki|
|00001010| 6c 6c 65 64 2e 20 20 49 | 6e 20 09 2a 29 0d 09 28 |lled. I|n .*)..(|
|00001020| 2a 20 74 68 69 73 20 63 | 61 73 65 2c 20 62 75 20 |* this c|ase, bu |
|00001030| 77 61 73 20 6b 69 6c 6c | 65 64 20 66 69 72 73 74 |was kill|ed first|
|00001040| 2c 20 73 6f 20 72 65 73 | 74 6f 72 65 62 6e 20 6d |, so res|torebn m|
|00001050| 75 73 74 20 62 65 20 63 | 61 6c 6c 65 64 20 62 65 |ust be c|alled be|
|00001060| 66 6f 72 65 09 2a 29 0d | 09 28 2a 20 72 65 73 74 |fore.*).|.(* rest|
|00001070| 6f 72 65 62 75 2e 20 20 | 49 66 20 6e 6f 74 2c 20 |orebu. |If not, |
|00001080| 74 68 65 20 72 6f 75 74 | 69 6e 65 73 20 77 69 6c |the rout|ines wil|
|00001090| 6c 20 62 65 20 72 65 76 | 65 72 73 65 64 2c 20 61 |l be rev|ersed, a|
|000010a0| 6e 64 20 79 6f 75 20 77 | 69 6c 6c 20 67 65 74 09 |nd you w|ill get.|
|000010b0| 2a 29 0d 09 28 2a 20 61 | 20 6c 69 6d 69 74 63 68 |*)..(* a| limitch|
|000010c0| 65 63 6b 20 28 6f 75 74 | 20 6f 66 20 6d 65 6d 6f |eck (out| of memo|
|000010d0| 72 79 29 20 65 72 72 6f | 72 20 69 6e 20 73 68 6f |ry) erro|r in sho|
|000010e0| 72 74 20 6f 72 64 65 72 | 2e 09 09 09 09 09 2a 29 |rt order|......*)|
|000010f0| 0d 09 28 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..(*****|********|
|00001100| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 20 49 |********|****** I|
|00001110| 4d 50 4f 52 54 41 4e 54 | 20 2a 2a 2a 2a 2a 2a 2a |MPORTANT| *******|
|00001120| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001130| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 29 0d 09 09 53 |********|***)...S|
|00001140| 65 6e 64 50 6f 73 74 53 | 63 72 69 70 74 28 27 65 |endPostS|cript('e|
|00001150| 6e 64 27 29 3b 0d 0d 09 | 28 2a 20 53 65 74 20 74 |nd');...|(* Set t|
|00001160| 68 65 20 66 6f 6e 74 20 | 75 73 69 6e 67 20 6f 75 |he font |using ou|
|00001170| 72 20 6e 65 77 20 53 65 | 74 46 6f 6e 74 20 72 6f |r new Se|tFont ro|
|00001180| 75 74 69 6e 65 2e 20 20 | 54 68 69 73 20 77 69 6c |utine. |This wil|
|00001190| 6c 20 73 65 74 20 74 68 | 65 20 66 6f 6e 74 20 09 |l set th|e font .|
|000011a0| 2a 29 0d 09 28 2a 20 66 | 6f 72 20 62 6f 74 68 20 |*)..(* f|or both |
|000011b0| 74 68 65 20 51 75 69 63 | 6b 64 72 61 77 20 61 6e |the Quic|kdraw an|
|000011c0| 64 20 50 6f 73 74 53 63 | 72 69 70 74 20 77 6f 72 |d PostSc|ript wor|
|000011d0| 6c 64 73 2e 20 20 53 69 | 6e 63 65 20 77 65 20 68 |lds. Si|nce we h|
|000011e0| 61 76 65 20 6b 69 6c 6c | 65 64 09 2a 29 0d 09 28 |ave kill|ed.*)..(|
|000011f0| 2a 20 62 6e 20 61 6e 64 | 20 62 75 2c 20 74 68 69 |* bn and| bu, thi|
|00001200| 73 20 73 68 6f 75 6c 64 | 20 68 61 76 65 20 6e 6f |s should| have no|
|00001210| 20 65 66 66 65 63 74 20 | 6f 6e 20 6f 75 72 20 50 | effect |on our P|
|00001220| 6f 73 74 53 63 72 69 70 | 74 20 64 69 63 74 69 6f |ostScrip|t dictio|
|00001230| 6e 61 72 79 2e 09 2a 29 | 0d 09 09 53 65 74 46 6f |nary..*)|...SetFo|
|00001240| 6e 74 28 27 54 69 6d 65 | 73 27 2c 20 35 30 2c 20 |nt('Time|s', 50, |
|00001250| 5b 62 6f 6c 64 5d 29 3b | 0d 0d 09 09 50 69 63 43 |[bold]);|....PicC|
|00001260| 6f 6d 6d 65 6e 74 28 50 | 6f 73 74 53 63 72 69 70 |omment(P|ostScrip|
|00001270| 74 42 65 67 69 6e 2c 20 | 30 2c 20 6e 69 6c 29 3b |tBegin, |0, nil);|
|00001280| 0d 09 09 28 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...(****|********|
|00001290| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000012a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000012b0| 29 0d 09 09 28 2a 2a 2a | 20 51 75 69 63 6b 64 72 |)...(***| Quickdr|
|000012c0| 61 77 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |aw repre|sentatio|
|000012d0| 6e 20 6f 66 20 67 72 61 | 70 68 69 63 2e 20 2a 2a |n of gra|phic. **|
|000012e0| 2a 29 0d 09 09 28 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*)...(**|********|
|000012f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001300| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001310| 2a 2a 29 0d 09 09 28 2a | 20 54 68 65 73 65 20 63 |**)...(*| These c|
|00001320| 61 6c 6c 73 20 61 72 65 | 20 6f 6e 6c 79 20 65 78 |alls are| only ex|
|00001330| 65 63 75 74 65 64 20 62 | 79 20 51 75 69 63 6b 64 |ecuted b|y Quickd|
|00001340| 72 61 77 20 28 69 2e 65 | 2e 20 6e 6f 6e 2d 50 6f |raw (i.e|. non-Po|
|00001350| 73 74 53 63 72 69 70 74 | 29 09 2a 29 0d 09 09 28 |stScript|).*)...(|
|00001360| 2a 20 64 65 76 69 63 65 | 73 2e 09 09 09 09 09 09 |* device|s.......|
|00001370| 09 09 09 09 09 09 09 09 | 09 2a 29 0d 09 09 4d 6f |........|.*)...Mo|
|00001380| 76 65 54 6f 28 31 30 30 | 2c 20 31 30 30 29 3b 0d |veTo(100|, 100);.|
|00001390| 09 09 44 72 61 77 53 74 | 72 69 6e 67 28 27 55 6e |..DrawSt|ring('Un|
|000013a0| 46 61 6e 63 79 20 54 69 | 74 6c 65 27 29 3b 0d 0d |Fancy Ti|tle');..|
|000013b0| 09 09 28 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..(*****|********|
|000013c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013e0| 29 0d 09 09 28 2a 2a 2a | 20 50 6f 73 74 53 63 72 |)...(***| PostScr|
|000013f0| 69 70 74 20 72 65 70 72 | 65 73 65 6e 74 61 74 69 |ipt repr|esentati|
|00001400| 6f 6e 20 6f 66 20 67 72 | 61 70 68 69 63 2e 20 2a |on of gr|aphic. *|
|00001410| 2a 2a 29 0d 09 09 28 2a | 2a 2a 2a 2a 2a 2a 2a 2a |**)...(*|********|
|00001420| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001430| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001440| 2a 2a 2a 2a 29 0d 09 09 | 53 65 6e 64 50 6f 73 74 |****)...|SendPost|
|00001450| 53 63 72 69 70 74 28 27 | 6d 79 64 69 63 74 20 62 |Script('|mydict b|
|00001460| 65 67 69 6e 27 29 3b 09 | 09 28 2a 20 50 6f 69 6e |egin');.|.(* Poin|
|00001470| 74 20 74 6f 20 6f 75 72 | 73 2e 09 09 09 2a 29 0d |t to our|s....*).|
|00001480| 09 09 53 65 6e 64 50 6f | 73 74 53 63 72 69 70 74 |..SendPo|stScript|
|00001490| 28 27 31 30 30 20 31 30 | 30 20 6d 6f 76 65 74 6f |('100 10|0 moveto|
|000014a0| 20 28 46 61 6e 63 79 20 | 54 69 74 6c 65 29 20 74 | (Fancy |Title) t|
|000014b0| 69 74 6c 65 73 68 6f 77 | 27 29 3b 09 09 09 09 28 |itleshow|');....(|
|000014c0| 2a 20 45 78 65 63 75 74 | 65 20 74 65 73 74 2e 09 |* Execut|e test..|
|000014d0| 09 09 2a 29 0d 09 09 53 | 65 6e 64 50 6f 73 74 53 |..*)...S|endPostS|
|000014e0| 63 72 69 70 74 28 27 65 | 6e 64 27 29 3b 09 09 09 |cript('e|nd');...|
|000014f0| 09 28 2a 20 52 65 73 65 | 74 20 62 61 63 6b 20 74 |.(* Rese|t back t|
|00001500| 6f 20 6c 61 73 74 20 64 | 69 63 74 2e 09 2a 29 0d |o last d|ict..*).|
|00001510| 09 09 50 69 63 43 6f 6d | 6d 65 6e 74 28 50 6f 73 |..PicCom|ment(Pos|
|00001520| 74 53 63 72 69 70 74 45 | 6e 64 2c 20 30 2c 20 6e |tScriptE|nd, 0, n|
|00001530| 69 6c 29 3b 0d 0d 09 28 | 2a 20 4e 6f 77 20 77 65 |il);...(|* Now we|
|00001540| 27 72 65 20 61 6c 6c 20 | 64 6f 6e 65 20 77 69 74 |'re all |done wit|
|00001550| 68 20 6f 75 72 20 6a 6f | 62 2c 20 73 6f 20 74 6f |h our jo|b, so to|
|00001560| 20 62 65 20 70 6f 6c 69 | 74 65 2c 20 77 65 20 72 | be poli|te, we r|
|00001570| 65 73 74 6f 72 65 20 74 | 68 65 09 2a 29 0d 09 28 |estore t|he.*)..(|
|00001580| 2a 20 6f 72 69 67 69 6e | 61 6c 20 64 65 66 69 6e |* origin|al defin|
|00001590| 69 74 69 6f 6e 73 20 6f | 66 20 62 6e 20 61 6e 64 |itions o|f bn and|
|000015a0| 20 62 75 2e 20 20 52 45 | 4d 45 4d 42 45 52 20 74 | bu. RE|MEMBER t|
|000015b0| 68 61 74 20 74 68 65 20 | 72 65 73 74 6f 72 65 78 |hat the |restorex|
|000015c0| 78 09 2a 29 0d 09 28 2a | 20 72 6f 75 74 69 6e 65 |x.*)..(*| routine|
|000015d0| 73 20 6d 75 73 74 20 62 | 65 20 65 78 65 63 75 74 |s must b|e execut|
|000015e0| 65 64 20 69 6e 20 74 68 | 65 20 6f 70 70 6f 73 69 |ed in th|e opposi|
|000015f0| 74 65 20 6f 72 64 65 72 | 20 74 68 61 74 20 74 68 |te order| that th|
|00001600| 65 20 6b 69 6c 6c 78 78 | 09 2a 29 0d 09 28 2a 20 |e killxx|.*)..(* |
|00001610| 72 6f 75 74 69 6e 65 73 | 20 77 65 72 65 2e 09 09 |routines| were...|
|00001620| 09 09 09 09 09 09 09 09 | 09 09 09 2a 29 0d 09 09 |........|...*)...|
|00001630| 53 65 6e 64 50 6f 73 74 | 53 63 72 69 70 74 28 27 |SendPost|Script('|
|00001640| 6d 79 64 69 63 74 20 62 | 65 67 69 6e 27 29 3b 0d |mydict b|egin');.|
|00001650| 09 09 53 65 6e 64 50 6f | 73 74 53 63 72 69 70 74 |..SendPo|stScript|
|00001660| 28 27 2f 2f 6d 64 20 2f | 62 6e 20 6b 6e 6f 77 6e |('//md /|bn known|
|00001670| 20 7b 72 65 73 74 6f 72 | 65 62 6e 7d 20 69 66 27 | {restor|ebn} if'|
|00001680| 29 3b 0d 09 09 53 65 6e | 64 50 6f 73 74 53 63 72 |);...Sen|dPostScr|
|00001690| 69 70 74 28 27 2f 2f 6d | 64 20 2f 62 75 20 6b 6e |ipt('//m|d /bu kn|
|000016a0| 6f 77 6e 20 7b 72 65 73 | 74 6f 72 65 62 75 7d 20 |own {res|torebu} |
|000016b0| 69 66 27 29 3b 0d 09 09 | 53 65 6e 64 50 6f 73 74 |if');...|SendPost|
|000016c0| 53 63 72 69 70 74 28 27 | 65 6e 64 27 29 3b 0d 09 |Script('|end');..|
|000016d0| 65 6e 64 3b 0d 0d 0d 09 | 70 72 6f 63 65 64 75 72 |end;....|procedur|
|000016e0| 65 20 50 72 69 6e 74 53 | 74 75 66 66 3b 0d 09 09 |e PrintS|tuff;...|
|000016f0| 76 61 72 0d 09 09 09 74 | 68 65 50 72 52 65 63 3a |var....t|hePrRec:|
|00001700| 20 54 48 50 72 69 6e 74 | 3b 0d 09 09 09 74 68 65 | THPrint|;....the|
|00001710| 50 72 50 6f 72 74 3a 20 | 54 50 50 72 50 6f 72 74 |PrPort: |TPPrPort|
|00001720| 3b 0d 09 09 09 74 68 65 | 53 74 61 74 75 73 3a 20 |;....the|Status: |
|00001730| 54 50 72 53 74 61 74 75 | 73 3b 0d 09 09 09 6f 6c |TPrStatu|s;....ol|
|00001740| 64 50 6f 72 74 3a 20 47 | 72 61 66 50 74 72 3b 0d |dPort: G|rafPtr;.|
|00001750| 09 09 09 74 68 65 45 72 | 72 6f 72 3a 20 4f 53 45 |...theEr|ror: OSE|
|00001760| 72 72 3b 0d 09 09 09 74 | 68 65 56 65 72 73 3a 20 |rr;....t|heVers: |
|00001770| 49 4e 54 45 47 45 52 3b | 0d 0d 09 62 65 67 69 6e |INTEGER;|...begin|
|00001780| 0d 09 09 47 65 74 50 6f | 72 74 28 6f 6c 64 50 6f |...GetPo|rt(oldPo|
|00001790| 72 74 29 3b 0d 09 09 74 | 68 65 50 72 52 65 63 20 |rt);...t|hePrRec |
|000017a0| 3a 3d 20 54 48 50 72 69 | 6e 74 28 4e 65 77 48 61 |:= THPri|nt(NewHa|
|000017b0| 6e 64 6c 65 28 53 49 5a | 45 4f 46 28 54 50 72 69 |ndle(SIZ|EOF(TPri|
|000017c0| 6e 74 29 29 29 3b 0d 0d | 09 09 50 72 4f 70 65 6e |nt)));..|..PrOpen|
|000017d0| 3b 0d 09 09 74 68 65 56 | 65 72 73 20 3a 3d 20 50 |;...theV|ers := P|
|000017e0| 72 44 72 76 72 56 65 72 | 73 3b 0d 09 09 69 66 20 |rDrvrVer|s;...if |
|000017f0| 50 72 45 72 72 6f 72 20 | 3d 20 6e 6f 45 72 72 20 |PrError |= noErr |
|00001800| 74 68 65 6e 0d 09 09 09 | 62 65 67 69 6e 0d 09 09 |then....|begin...|
|00001810| 09 09 50 72 69 6e 74 44 | 65 66 61 75 6c 74 28 74 |..PrintD|efault(t|
|00001820| 68 65 50 72 52 65 63 29 | 3b 0d 09 09 09 09 69 66 |hePrRec)|;.....if|
|00001830| 20 6e 6f 74 20 50 72 53 | 74 6c 44 69 61 6c 6f 67 | not PrS|tlDialog|
|00001840| 28 74 68 65 50 72 52 65 | 63 29 20 74 68 65 6e 0d |(thePrRe|c) then.|
|00001850| 09 09 09 09 09 45 78 69 | 74 54 6f 53 68 65 6c 6c |.....Exi|tToShell|
|00001860| 3b 0d 09 09 09 09 69 66 | 20 6e 6f 74 20 50 72 4a |;.....if| not PrJ|
|00001870| 6f 62 44 69 61 6c 6f 67 | 28 74 68 65 50 72 52 65 |obDialog|(thePrRe|
|00001880| 63 29 20 74 68 65 6e 0d | 09 09 09 09 09 45 78 69 |c) then.|.....Exi|
|00001890| 74 54 6f 53 68 65 6c 6c | 3b 0d 09 09 09 09 74 68 |tToShell|;.....th|
|000018a0| 65 50 72 50 6f 72 74 20 | 3a 3d 20 50 72 4f 70 65 |ePrPort |:= PrOpe|
|000018b0| 6e 44 6f 63 28 74 68 65 | 50 72 52 65 63 2c 20 6e |nDoc(the|PrRec, n|
|000018c0| 69 6c 2c 20 6e 69 6c 29 | 3b 0d 09 09 09 09 69 66 |il, nil)|;.....if|
|000018d0| 20 50 72 45 72 72 6f 72 | 20 3d 20 6e 6f 45 72 72 | PrError| = noErr|
|000018e0| 20 74 68 65 6e 0d 09 09 | 09 09 09 62 65 67 69 6e | then...|...begin|
|000018f0| 0d 09 09 09 09 09 09 50 | 72 4f 70 65 6e 50 61 67 |.......P|rOpenPag|
|00001900| 65 28 74 68 65 50 72 50 | 6f 72 74 2c 20 6e 69 6c |e(thePrP|ort, nil|
|00001910| 29 3b 0d 09 09 09 09 09 | 09 69 66 20 50 72 45 72 |);......|.if PrEr|
|00001920| 72 6f 72 20 3d 20 6e 6f | 45 72 72 20 74 68 65 6e |ror = no|Err then|
|00001930| 0d 09 09 09 09 09 09 09 | 62 65 67 69 6e 0d 0d 09 |........|begin...|
|00001940| 09 09 09 09 09 09 09 44 | 72 61 77 53 74 75 66 66 |.......D|rawStuff|
|00001950| 28 74 68 65 50 72 52 65 | 63 5e 5e 2e 70 72 49 6e |(thePrRe|c^^.prIn|
|00001960| 66 6f 2e 72 50 61 67 65 | 29 3b 0d 0d 09 09 09 09 |fo.rPage|);......|
|00001970| 09 09 09 65 6e 64 3b 0d | 09 09 09 09 09 09 50 72 |...end;.|......Pr|
|00001980| 43 6c 6f 73 65 50 61 67 | 65 28 74 68 65 50 72 50 |ClosePag|e(thePrP|
|00001990| 6f 72 74 29 0d 09 09 09 | 09 09 65 6e 64 3b 0d 09 |ort)....|..end;..|
|000019a0| 09 09 09 50 72 43 6c 6f | 73 65 44 6f 63 28 74 68 |...PrClo|seDoc(th|
|000019b0| 65 50 72 50 6f 72 74 29 | 3b 0d 09 09 09 09 69 66 |ePrPort)|;.....if|
|000019c0| 20 28 74 68 65 50 72 52 | 65 63 5e 5e 2e 70 72 4a | (thePrR|ec^^.prJ|
|000019d0| 6f 62 2e 62 4a 44 6f 63 | 4c 6f 6f 70 20 3d 20 62 |ob.bJDoc|Loop = b|
|000019e0| 53 70 6f 6f 6c 4c 6f 6f | 70 29 20 61 6e 64 20 28 |SpoolLoo|p) and (|
|000019f0| 50 72 45 72 72 6f 72 20 | 3d 20 6e 6f 45 72 72 29 |PrError |= noErr)|
|00001a00| 20 74 68 65 6e 0d 09 09 | 09 09 09 50 72 50 69 63 | then...|...PrPic|
|00001a10| 46 69 6c 65 28 74 68 65 | 50 72 52 65 63 2c 20 6e |File(the|PrRec, n|
|00001a20| 69 6c 2c 20 6e 69 6c 2c | 20 6e 69 6c 2c 20 74 68 |il, nil,| nil, th|
|00001a30| 65 53 74 61 74 75 73 29 | 3b 0d 09 09 09 65 6e 64 |eStatus)|;....end|
|00001a40| 3b 0d 09 09 50 72 43 6c | 6f 73 65 3b 0d 0d 09 09 |;...PrCl|ose;....|
|00001a50| 53 65 74 50 6f 72 74 28 | 6f 6c 64 50 6f 72 74 29 |SetPort(|oldPort)|
|00001a60| 3b 0d 09 65 6e 64 3b 0d | 0d 62 65 67 69 6e 0d 09 |;..end;.|.begin..|
|00001a70| 49 6e 69 74 47 72 61 66 | 28 40 74 68 65 50 6f 72 |InitGraf|(@thePor|
|00001a80| 74 29 3b 20 09 09 09 20 | 20 20 20 20 7b 69 6e 69 |t); ... | {ini|
|00001a90| 74 69 61 6c 69 7a 65 20 | 51 75 69 63 6b 44 72 61 |tialize |QuickDra|
|00001aa0| 77 7d 0d 09 49 6e 69 74 | 46 6f 6e 74 73 3b 09 09 |w}..Init|Fonts;..|
|00001ab0| 09 09 09 09 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00001ac0| 7b 69 6e 69 74 69 61 6c | 69 7a 65 20 46 6f 6e 74 |{initial|ize Font|
|00001ad0| 20 4d 61 6e 61 67 65 72 | 7d 0d 09 46 6c 75 73 68 | Manager|}..Flush|
|00001ae0| 45 76 65 6e 74 73 28 65 | 76 65 72 79 45 76 65 6e |Events(e|veryEven|
|00001af0| 74 2c 20 30 29 3b 20 7b | 63 61 6c 6c 20 4f 53 20 |t, 0); {|call OS |
|00001b00| 45 76 65 6e 74 20 4d 67 | 72 20 74 6f 20 64 69 73 |Event Mg|r to dis|
|00001b10| 63 61 72 64 20 61 6e 79 | 20 70 72 65 76 69 6f 75 |card any| previou|
|00001b20| 73 20 65 76 65 6e 74 73 | 7d 0d 09 49 6e 69 74 57 |s events|}..InitW|
|00001b30| 69 6e 64 6f 77 73 3b 09 | 09 09 09 09 20 20 20 20 |indows;.|.... |
|00001b40| 20 20 20 20 20 20 20 7b | 69 6e 69 74 69 61 6c 69 | {|initiali|
|00001b50| 7a 65 20 57 69 6e 64 6f | 77 20 4d 61 6e 61 67 65 |ze Windo|w Manage|
|00001b60| 72 7d 0d 09 49 6e 69 74 | 4d 65 6e 75 73 3b 09 09 |r}..Init|Menus;..|
|00001b70| 09 09 09 09 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00001b80| 7b 69 6e 69 74 69 61 6c | 69 7a 65 20 4d 65 6e 75 |{initial|ize Menu|
|00001b90| 20 4d 61 6e 61 67 65 72 | 7d 0d 09 54 45 49 6e 69 | Manager|}..TEIni|
|00001ba0| 74 3b 20 09 09 09 09 09 | 09 20 20 20 20 20 20 20 |t; .....|. |
|00001bb0| 20 20 20 20 20 20 20 7b | 69 6e 69 74 69 61 6c 69 | {|initiali|
|00001bc0| 7a 65 20 54 65 78 74 45 | 64 69 74 7d 0d 09 49 6e |ze TextE|dit}..In|
|00001bd0| 69 74 44 69 61 6c 6f 67 | 73 28 6e 69 6c 29 3b 09 |itDialog|s(nil);.|
|00001be0| 09 09 09 20 20 20 20 20 | 20 20 7b 69 6e 69 74 69 |... | {initi|
|00001bf0| 61 6c 69 7a 65 20 44 69 | 61 6c 6f 67 20 4d 61 6e |alize Di|alog Man|
|00001c00| 61 67 65 72 7d 0d 09 49 | 6e 69 74 43 75 72 73 6f |ager}..I|nitCurso|
|00001c10| 72 3b 20 09 09 09 09 09 | 20 20 20 20 20 20 20 20 |r; .....| |
|00001c20| 20 20 20 7b 63 61 6c 6c | 20 51 75 69 63 6b 44 72 | {call| QuickDr|
|00001c30| 61 77 20 74 6f 20 6d 61 | 6b 65 20 63 75 72 73 6f |aw to ma|ke curso|
|00001c40| 72 20 28 70 6f 69 6e 74 | 65 72 29 20 61 6e 20 61 |r (point|er) an a|
|00001c50| 72 72 6f 77 7d 0d 0d 09 | 50 72 69 6e 74 53 74 75 |rrow}...|PrintStu|
|00001c60| 66 66 3b 0d 65 6e 64 2e | 00 00 00 00 00 00 00 00 |ff;.end.|........|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c80| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001c90| 54 68 69 73 20 72 65 73 | 6f 75 72 63 65 20 66 6f |This res|ource fo|
|00001ca0| 72 6b 20 69 6e 74 65 6e | 74 69 6f 6e 61 6c 6c 79 |rk inten|tionally|
|00001cb0| 20 6c 65 66 74 20 62 6c | 61 6e 6b 20 20 20 00 00 | left bl|ank ..|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+